package com.dao;

import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.dto.UserInfo;

@Mapper
public interface UpdatePwdDao {
	
  	//发送短信验证(根据电话查用户)
	public UserInfo getUserByPhone(String phone);
	
	//发送短信验证（将验证码和电话存入数据库）
	public void InsertCode(Map<String,String> map);
	
	//根据验证码和电话号验证
	public String getPhoneByCodeAndPhone(Map<String,String> map);
	
	//根据电话号码修改密码
	public void updatePassword(Map<String,String> map);

}
